home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 January: Mac OS SDK / Dev.CD Jan 99 SDK1.toast / Development Kits / Interfaces&Libraries / Universal / Interfaces / CIncludes / CRMSerialDevices.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-08-17  |  2.0 KB  |  100 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        CRMSerialDevices.h
  3.  
  4.      Contains:    Communications Resource Manager Serial Device interfaces.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Release:    Universal Interfaces 3.2
  8.  
  9.      Copyright:    © 1988-1993, 1995, 1997-1998 by Apple Computer, Inc., all rights reserved
  10.  
  11.      Bugs?:        For bug reports, consult the following page on
  12.                  the World Wide Web:
  13.  
  14.                      http://developer.apple.com/bugreporter/
  15.  
  16. */
  17. #ifndef __CRMSERIALDEVICES__
  18. #define __CRMSERIALDEVICES__
  19.  
  20. #ifndef __MACTYPES__
  21. #include <MacTypes.h>
  22. #endif
  23.  
  24.  
  25.  
  26. #if PRAGMA_ONCE
  27. #pragma once
  28. #endif
  29.  
  30. #ifdef __cplusplus
  31. extern "C" {
  32. #endif
  33.  
  34. #if PRAGMA_IMPORT
  35. #pragma import on
  36. #endif
  37.  
  38. #if PRAGMA_STRUCT_ALIGN
  39.     #pragma options align=mac68k
  40. #elif PRAGMA_STRUCT_PACKPUSH
  41.     #pragma pack(push, 2)
  42. #elif PRAGMA_STRUCT_PACK
  43.     #pragma pack(2)
  44. #endif
  45.  
  46.  
  47. enum {
  48.                                                                 /*     for the crmDeviceType field of the CRMRec data structure    */
  49.     crmSerialDevice                = 1,                            /*    version of the CRMSerialRecord below    */
  50.     curCRMSerRecVers            = 1
  51. };
  52.  
  53. /* Maintains compatibility w/ apps & tools that expect an old style icon    */
  54.  
  55. struct CRMIconRecord {
  56.     long                             oldIcon[32];                /* ICN#    */
  57.     long                             oldMask[32];
  58.     Handle                             theSuite;                    /* Handle to an IconSuite    */
  59.     long                             reserved;
  60. };
  61. typedef struct CRMIconRecord            CRMIconRecord;
  62.  
  63. typedef CRMIconRecord *                    CRMIconPtr;
  64. typedef CRMIconPtr *                    CRMIconHandle;
  65.  
  66. struct CRMSerialRecord {
  67.     short                             version;
  68.     StringHandle                     inputDriverName;
  69.     StringHandle                     outputDriverName;
  70.     StringHandle                     name;
  71.     CRMIconHandle                     deviceIcon;
  72.     long                             ratedSpeed;
  73.     long                             maxSpeed;
  74.     long                             reserved;
  75. };
  76. typedef struct CRMSerialRecord            CRMSerialRecord;
  77.  
  78. typedef CRMSerialRecord *                CRMSerialPtr;
  79.  
  80. #if PRAGMA_STRUCT_ALIGN
  81.     #pragma options align=reset
  82. #elif PRAGMA_STRUCT_PACKPUSH
  83.     #pragma pack(pop)
  84. #elif PRAGMA_STRUCT_PACK
  85.     #pragma pack()
  86. #endif
  87.  
  88. #ifdef PRAGMA_IMPORT_OFF
  89. #pragma import off
  90. #elif PRAGMA_IMPORT
  91. #pragma import reset
  92. #endif
  93.  
  94. #ifdef __cplusplus
  95. }
  96. #endif
  97.  
  98. #endif /* __CRMSERIALDEVICES__ */
  99.  
  100.